//package cn.bonoon.kernel.support.services.handler;
//
//import javax.persistence.EntityManager;
//
//import cn.bonoon.kernel.support.OperateEvent;
//import cn.bonoon.kernel.support.entities.Persistable;
//
//public class EditStandardHandler<E extends Persistable> implements EditHandler<E> {
//
//	@Override
//	public  E insertHandler(EntityManager entityManager, OperateEvent event, E entity) {
//		entityManager.persist(entity);
//		return entity;
//	}
//
//	@Override
//	public E updateHandler(EntityManager entityManager, OperateEvent event, E entity) {
//		return entityManager.merge(entity);
//	}
//}
